package com.mc;


import com.alibaba.fastjson.JSONObject;

public class TestStaticInnerClass01 {

    public static void main(String[] args) {
        OuterClass outerClass=new OuterClass();

        System.out.println("outerClass = " + outerClass.getOuterField());
        String jsonString = JSONObject.toJSONString(outerClass);
        System.out.println("jsonString = " + jsonString);

        OuterClass.StaticInnerClass staticInnerClass=new OuterClass.StaticInnerClass();
        String jsonString2 = JSONObject.toJSONString(staticInnerClass);
        System.out.println("jsonString2 = " + jsonString2);

        outerClass.setObj(staticInnerClass);
        String jsonString3 = JSONObject.toJSONString(outerClass);
        System.out.println("jsonString3 = " + jsonString3);


    }
}
